<%@page contentType="text/html; UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>shiro</title>
</head>


<h1>系统主页v1.0</h1>
<a href="${pageContext.request.contextPath}/user/logout">退出用户</a>

<ul>
    <shiro:hasAnyRoles name="user,admin">
    <li><a href="">用户管理</a></li>
        <ul>
            <shiro:hasPermission name="user:add:*">
                <li><a href="">添加</a> </li>
            </shiro:hasPermission>
            <shiro:hasPermission name="user:delete:*">
            <li><a href="">删除</a> </li>
            </shiro:hasPermission>
            <shiro:hasPermission name="user:update:*">
            <li><a href="">修改</a> </li>
            </shiro:hasPermission>
            <shiro:hasPermission name="user:find:*">
            <li><a href="">查询</a> </li>
            </shiro:hasPermission>
        </ul>
    <shiro:hasRole name="admin">
    <li><a href="">商品管理</a></li>
    <li><a href="">订单管理</a></li>
    <li><a href="">物流管理</a></li>
    </shiro:hasRole>
    </shiro:hasAnyRoles>
</ul>
</body>

</html>
